<ul class="menu-head-top">
    <li {if $_W['routes']=='sns'} class="active" {/if}><a href="{php echo webUrl('sns')}">概述 <i class="fa fa-caret-right"></i></a></li>
</ul>
<div class='menu-header'>{php echo $this->plugintitle}</div>
<ul>
    {ifp 'sns.adv'}<li {if $_W['routes']=='sns.adv'||$_W['routes']=='sns.adv.edit'||$_W['routes']=='sns.adv.add'}class="active"{/if}><a href="{php echo webUrl('sns/adv')}">幻灯片管理</a></li>{/if}
    {ifp 'sns.level'}<li {if $_W['routes']=='sns.level'}class="active"{/if}><a href="{php echo webUrl('sns/level')}">等级管理</a></li>{/if}
</ul>
<div class='menu-header'>社区管理</div>
<ul>
    {ifp 'sns.category'}<li {if $_W['routes']=='sns.category'|| $_W['routes']=='sns.category.edit'|| $_W['routes']=='sns.category.add'}class="active"{/if}><a href="{php echo webUrl('sns/category')}">分类管理</a></li>{/if}
    {ifp 'sns.board'}<li {if $_W['routes']=='sns.board' || $_W['routes']=='sns.board.edit'}class="active"{/if}><a href="{php echo webUrl('sns/board')}">版块管理</a></li>{/if}
    {ifp 'sns.manage'}<li {if $_W['routes']=='sns.manage' || $_W['routes']=='sns.manage.edit'}class="active"{/if}><a href="{php echo webUrl('sns/manage')}">版主管理</a></li>{/if}
    {ifp 'sns.member'}<li {if $_W['routes']=='sns.member'}class="active"{/if}><a href="{php echo webUrl('sns/member')}">会员管理</a></li>{/if}
</ul>
<div class='menu-header'>话题管理</div>
    <ul>
    {ifp 'sns.posts'}<li {if $_W['routes']=='sns.posts'}class="active"{/if}><a href="{php echo webUrl('sns/posts')}">话题管理</a></li>{/if}
    {ifp 'sns.replys'}<li {if $_W['routes']=='sns.replys'}class="active"{/if}><a href="{php echo webUrl('sns/replys')}">评论管理</a></li>{/if}
</ul>
<div class='menu-header'>投诉管理</div>
<ul>
    {ifp 'sns.complain.category'}<li {if $_W['routes']=='sns.complain.category'}class="active"{/if}><a href="{php echo webUrl('sns/complain/category')}">投诉类别</a></li>{/if}
    {ifp 'sns.complain'}<li {if $_GPC['type']=='untreated'}class="active"{/if}><a href="{php echo webUrl('sns/complain',array('type'=>'untreated'))}">待审核</a></li>{/if}
    {ifp 'sns.complain'}<li {if $_GPC['type']=='cancel'}class="active"{/if}><a href="{php echo webUrl('sns/complain',array('type'=>'cancel'))}">未通过</a></li>{/if}
    {ifp 'sns.complain'}<li {if $_GPC['type']=='processed'}class="active"{/if}><a href="{php echo webUrl('sns/complain',array('type'=>'processed'))}">已审核</a></li>{/if}
    {ifp 'sns.complain'}<li {if $_GPC['type']=='deleted'}class="active"{/if}><a href="{php echo webUrl('sns/complain',array('type'=>'deleted'))}">已删除</a></li>{/if}
    {ifp 'sns.complain'}<li {if $_W['routes']=='sns.complain' && $_GPC['type']==''}class="active"{/if}><a href="{php echo webUrl('sns/complain')}">全部投诉</a></li>{/if}
</ul>
<div class='menu-header'>基础设置</div>
<ul>
    {ifp 'sns.cover'}<li {if $_W['action']=='cover'}class="active"{/if}><a href="{php echo webUrl('sns/cover')}">入口设置</a></li>{/if}
    {ifp 'sns.notice'}<li  {if $_W['action']=='notice'}class="active"{/if}><a href="{php echo webUrl('sns/notice')}">通知设置</a></li>{/if}
    {ifp 'sns.set'}<li {if $_W['action']=='set'}class="active"{/if}><a href="{php echo webUrl('sns/set')}">基础设置</a></li>{/if}
</ul>